package socket

import (
	"fmt"
	"os"
)

func CheckError(err error) {
	if err != nil {
		fmt.Fprintf(os.Stderr, "fatal errpr: %s\n", err.Error())
		os.Exit(1)
	}
}

type (
	Request struct {
		A int
		B int
	}

	Response struct {
		Sum int
		Dur int64
	}
)
